package org.sippr.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.sippr.pojo.CreationWordNegative;

@Mapper
public interface CreationWordNegativeMapper {
    int deleteByPrimaryKey(Integer id);

    @Insert("insert into creation_wrod_negative (creation_id, words)\n" +
            "        values (#{creationId,jdbcType=INTEGER}, #{words,jdbcType=VARCHAR})")
    int insert(CreationWordNegative record);

    int insertSelective(CreationWordNegative record);

    CreationWordNegative selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CreationWordNegative record);

    int updateByPrimaryKey(CreationWordNegative record);

    @Select("select * from creation_wrod_negative where creation_id=#{creationId}")
    CreationWordNegative findByCreationId(Integer creationId);
}